<template>
  <div id="app">
    <el-container>
      <el-header style="background-color: #409EFF; color: white;">
        <h1>贵阳市电子政务系统 - 消息管理模块</h1>
      </el-header>
      <el-container>
        <el-aside width="200px" style="background-color: #f5f5f5;">
          <el-menu router>
            <el-menu-item index="/message/type">
              <el-icon><Message /></el-icon>
              <span>消息类型管理</span>
            </el-menu-item>
            <el-menu-item index="/message/record">
              <el-icon><Document /></el-icon>
              <span>消息记录查询</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import { Message, Document } from '@element-plus/icons-vue'
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  height: 100vh;
}

.el-header {
  display: flex;
  align-items: center;
}

.el-aside {
  height: calc(100vh - 60px);
}
</style>